package utils 
{
	/**
	 * ...
	 * @author Ivan
	 */
	public class MathHelper 
	{
		
		public function MathHelper() 
		{
			
		}
		
		public static function Clamp(value:Number, min:Number, max:Number):Number 
		{
			if (value < min)
				return min;
			if (value > max)
				return max;
			return value;
		}
		
	}

}